package com.smh.aiagent.exceptions;

import com.smh.aiagent.enums.HttpStatus;
import lombok.Getter;

/**
 * @author shiminghui
 * @date 2025/5/30 15:58
 * @description: TODO
 */
@Getter
public class AiAgentException extends RuntimeException {
    private final Integer code;
    private final String message;

    public AiAgentException(HttpStatus httpStatus) {
        this.code = httpStatus.getCode();
        this.message = httpStatus.getMessage();
    }

    public AiAgentException(HttpStatus httpStatus, String message) {
        this.code = httpStatus.getCode();
        this.message = message;
    }

    public AiAgentException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
